﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using Phones.Client.Model;
using System.Windows;

namespace Phones.Client.Repository
{
    public static class OptionsStatic
    {
        public static ServiceNode _node;

        public static Model.ServiceNode ServiceNode
        {
            get
            {
                if (_node == null)
                {
                    using (var _db = new ServiceNodesRepository())
                    {
                        _node = _db.GetByName("Витебск");
                        return _node;
                    }
                }
                return _node;
            }
            set
            {
                _node = value;
            }
        }
    }
}
